<?php
/**
 * Created by PhpStorm.
 * User: 周超
 * Date: 2016/11/17
 * Time: 17:50
 */

namespace App\Http\Routes;

use Illuminate\Contracts\Routing\Registrar;
class MasksBackRoute
{
    public function map(Registrar $router)
    {
        $router->group(['middleware' =>   ['web','auth','permissions.check'],
            'prefix' => 'backstage/masks',], function ($router) {
            $router->get('list',['uses' =>'Backstage\MaskController@getList'])->name('get.masks.list');
            $router->get('update/{mask_id}',['uses' =>'Backstage\MaskController@getUpdate'])->name('get.masks.list.update');
            $router->get('add',['uses' =>'Backstage\MaskController@getAdd'])->name('get.masks.list.add');
            $router->post('add',['uses' =>'Backstage\MaskController@postAdd'])->name('post.masks.list.add');
            $router->post('update',['uses' =>'Backstage\MaskController@postUpdate'])->name('post.masks.list.update');
            $router->get('delete/{mask_id}',['uses' =>'Backstage\MaskController@getDelete'])->name('get.masks.list.delete');
        });
    }
}